# The script to run optimized models on test data
expDir="models"

# Linear CRF

java -Xmx6g -Xms6g -jar ../target/experiments-smsnp-1.0-SNAPSHOT.jar -algo LINEAR_CRF -modelPath ${expDir}/lcrf-trigram-0.125.model -testPath ../data/SMSNP.test -logPath ${expDir}/lcrf-trigram-0.125.test.log -resultPath ${expDir}/lcrf-trigram-0.125.test.result -l2 0.125 -nThreads 4 -tokenizer regex 2>&1 | tee ${expDir}/lcrf-trigram-0.125.test.runlog

java -Xmx6g -Xms6g -jar ../target/experiments-smsnp-1.0-SNAPSHOT.jar -algo LINEAR_CRF -modelPath ${expDir}/lcrf-trigram-word_shape-0.25.model -testPath ../data/SMSNP.test -logPath ${expDir}/lcrf-trigram-word_shape-0.25.test.log -resultPath ${expDir}/lcrf-trigram-word_shape-0.25.test.result -l2 0.25 -nThreads 4 -tokenizer regex 2>&1 | tee ${expDir}/lcrf-trigram-word_shape-0.25.test.runlog

java -Xmx6g -Xms6g -jar ../target/experiments-smsnp-1.0-SNAPSHOT.jar -algo LINEAR_CRF -modelPath ${expDir}/lcrf-trigram-brown_cluster-0.5.model -testPath ../data/SMSNP.test -logPath ${expDir}/lcrf-trigram-brown_cluster-0.5.test.log -resultPath ${expDir}/lcrf-trigram-brown_cluster-0.5.test.result -l2 0.5 -nThreads 4 -tokenizer regex 2>&1 | tee ${expDir}/lcrf-trigram-brown_cluster-0.5.test.runlog

java -Xmx6g -Xms6g -jar ../target/experiments-smsnp-1.0-SNAPSHOT.jar -algo LINEAR_CRF -modelPath ${expDir}/lcrf-trigram-brown_cluster-word_shape-0.5.model -testPath ../data/SMSNP.test -logPath ${expDir}/lcrf-trigram-brown_cluster-word_shape-0.5.test.log -resultPath ${expDir}/lcrf-trigram-brown_cluster-word_shape-0.5.test.result -l2 0.5 -nThreads 4 -tokenizer regex 2>&1 | tee ${expDir}/lcrf-trigram-brown_cluster-word_shape-0.5.test.runlog

java -Xmx6g -Xms6g -jar ../target/experiments-smsnp-1.0-SNAPSHOT.jar -algo LINEAR_CRF -modelPath ${expDir}/lcrf-trigram-prefix-suffix-1.0.model -testPath ../data/SMSNP.test -logPath ${expDir}/lcrf-trigram-prefix-suffix-1.0.test.log -resultPath ${expDir}/lcrf-trigram-prefix-suffix-1.0.test.result -l2 1.0 -nThreads 4 -tokenizer regex 2>&1 | tee ${expDir}/lcrf-trigram-prefix-suffix-1.0.test.runlog

java -Xmx6g -Xms6g -jar ../target/experiments-smsnp-1.0-SNAPSHOT.jar -algo LINEAR_CRF -modelPath ${expDir}/lcrf-trigram-prefix-suffix-word_shape-2.0.model -testPath ../data/SMSNP.test -logPath ${expDir}/lcrf-trigram-prefix-suffix-word_shape-2.0.test.log -resultPath ${expDir}/lcrf-trigram-prefix-suffix-word_shape-2.0.test.result -l2 2.0 -nThreads 4 -tokenizer regex 2>&1 | tee ${expDir}/lcrf-trigram-prefix-suffix-word_shape-2.0.test.runlog

java -Xmx6g -Xms6g -jar ../target/experiments-smsnp-1.0-SNAPSHOT.jar -algo LINEAR_CRF -modelPath ${expDir}/lcrf-trigram-prefix-suffix-brown_cluster-1.0.model -testPath ../data/SMSNP.test -logPath ${expDir}/lcrf-trigram-prefix-suffix-brown_cluster-1.0.test.log -resultPath ${expDir}/lcrf-trigram-prefix-suffix-brown_cluster-1.0.test.result -l2 1.0 -nThreads 4 -tokenizer regex 2>&1 | tee ${expDir}/lcrf-trigram-prefix-suffix-brown_cluster-1.0.test.runlog

java -Xmx6g -Xms6g -jar ../target/experiments-smsnp-1.0-SNAPSHOT.jar -algo LINEAR_CRF -modelPath ${expDir}/lcrf-trigram-prefix-suffix-brown_cluster-word_shape-2.0.model -testPath ../data/SMSNP.test -logPath ${expDir}/lcrf-trigram-prefix-suffix-brown_cluster-word_shape-2.0.test.log -resultPath ${expDir}/lcrf-trigram-prefix-suffix-brown_cluster-word_shape-2.0.test.result -l2 2.0 -nThreads 4 -tokenizer regex 2>&1 | tee ${expDir}/lcrf-trigram-prefix-suffix-brown_cluster-word_shape-2.0.test.runlog

# Semi-CRF

java -Xmx10g -Xms10g -jar ../target/experiments-smsnp-1.0-SNAPSHOT.jar -algo WORD_SEMI_CRF -modelPath ${expDir}/semi-crf_seg6_prev_words_next_bigram_segment-2.0.model -testPath ../data/SMSNP.test -logPath ${expDir}/semi-crf_seg6_prev_words_next_bigram_segment-2.0.test.log -resultPath ${expDir}/semi-crf_seg6_prev_words_next_bigram_segment-2.0.test.result -l2 2.0 -maxSegmentLength 6 -nThreads 4 -tokenizer regex 2>&1 | tee ${expDir}/semi-crf_seg6_prev_words_next_bigram_segment-2.0.test.runlog

java -Xmx10g -Xms10g -jar ../target/experiments-smsnp-1.0-SNAPSHOT.jar -algo WORD_SEMI_CRF -modelPath ${expDir}/semi-crf_seg6_prev_words_next_bigram_segment_shape-1.0.model -testPath ../data/SMSNP.test -logPath ${expDir}/semi-crf_seg6_prev_words_next_bigram_segment_shape-1.0.test.log -resultPath ${expDir}/semi-crf_seg6_prev_words_next_bigram_segment_shape-1.0.test.result -l2 1.0 -maxSegmentLength 6 -nThreads 4 -tokenizer regex 2>&1 | tee ${expDir}/semi-crf_seg6_prev_words_next_bigram_segment_shape-1.0.test.runlog

java -Xmx10g -Xms10g -jar ../target/experiments-smsnp-1.0-SNAPSHOT.jar -algo WORD_SEMI_CRF -modelPath ${expDir}/semi-crf_seg6_prev_words_next_bigram_segment_cluster-1.0.model -testPath ../data/SMSNP.test -logPath ${expDir}/semi-crf_seg6_prev_words_next_bigram_segment_cluster-1.0.test.log -resultPath ${expDir}/semi-crf_seg6_prev_words_next_bigram_segment_cluster-1.0.test.result -l2 1.0 -maxSegmentLength 6 -nThreads 4 -tokenizer regex 2>&1 | tee ${expDir}/semi-crf_seg6_prev_words_next_bigram_segment_cluster-1.0.test.runlog

java -Xmx10g -Xms10g -jar ../target/experiments-smsnp-1.0-SNAPSHOT.jar -algo WORD_SEMI_CRF -modelPath ${expDir}/semi-crf_seg6_prev_words_next_bigram_segment_cluster_shape-2.0.model -testPath ../data/SMSNP.test -logPath ${expDir}/semi-crf_seg6_prev_words_next_bigram_segment_cluster_shape-2.0.test.log -resultPath ${expDir}/semi-crf_seg6_prev_words_next_bigram_segment_cluster_shape-2.0.test.result -l2 2.0 -maxSegmentLength 6 -nThreads 4 -tokenizer regex 2>&1 | tee ${expDir}/semi-crf_seg6_prev_words_next_bigram_segment_cluster_shape-2.0.test.runlog

java -Xmx10g -Xms10g -jar ../target/experiments-smsnp-1.0-SNAPSHOT.jar -algo WORD_SEMI_CRF -modelPath ${expDir}/semi-crf_seg6_affix_prev_words_next_bigram_segment-2.0.model -testPath ../data/SMSNP.test -logPath ${expDir}/semi-crf_seg6_affix_prev_words_next_bigram_segment-2.0.test.log -resultPath ${expDir}/semi-crf_seg6_affix_prev_words_next_bigram_segment-2.0.test.result -l2 2.0 -maxSegmentLength 6 -nThreads 4 -tokenizer regex 2>&1 | tee ${expDir}/semi-crf_seg6_affix_prev_words_next_bigram_segment-2.0.test.runlog

java -Xmx10g -Xms10g -jar ../target/experiments-smsnp-1.0-SNAPSHOT.jar -algo WORD_SEMI_CRF -modelPath ${expDir}/semi-crf_seg6_affix_prev_words_next_bigram_segment-reduced-1.0.model -testPath ../data/SMSNP.test -logPath ${expDir}/semi-crf_seg6_affix_prev_words_next_bigram_segment-reduced-1.0.test.log -resultPath ${expDir}/semi-crf_seg6_affix_prev_words_next_bigram_segment-reduced-1.0.test.result -l2 1.0 -maxSegmentLength 6 -nThreads 4 -tokenizer regex 2>&1 | tee ${expDir}/semi-crf_seg6_affix_prev_words_next_bigram_segment-reduced-1.0.test.runlog

java -Xmx10g -Xms10g -jar ../target/experiments-smsnp-1.0-SNAPSHOT.jar -algo WORD_SEMI_CRF -modelPath ${expDir}/semi-crf_seg6_affix_prev_words_next_bigram_segment_cluster-2.0.model -testPath ../data/SMSNP.test -logPath ${expDir}/semi-crf_seg6_affix_prev_words_next_bigram_segment_cluster-2.0.test.log -resultPath ${expDir}/semi-crf_seg6_affix_prev_words_next_bigram_segment_cluster-2.0.test.result -l2 2.0 -maxSegmentLength 6 -nThreads 4 -tokenizer regex 2>&1 | tee ${expDir}/semi-crf_seg6_affix_prev_words_next_bigram_segment_cluster-2.0.test.runlog

java -Xmx10g -Xms10g -jar ../target/experiments-smsnp-1.0-SNAPSHOT.jar -algo WORD_SEMI_CRF -modelPath ${expDir}/semi-crf_seg6_affix_prev_words_next_bigram_segment_cluster_shape-2.0.model -testPath ../data/SMSNP.test -logPath ${expDir}/semi-crf_seg6_affix_prev_words_next_bigram_segment_cluster_shape-2.0.test.log -resultPath ${expDir}/semi-crf_seg6_affix_prev_words_next_bigram_segment_cluster_shape-2.0.test.result -l2 2.0 -maxSegmentLength 6 -nThreads 4 -tokenizer regex 2>&1 | tee ${expDir}/semi-crf_seg6_affix_prev_words_next_bigram_segment_cluster_shape-2.0.test.runlog

# Weak Semi-CRF

java -Xmx10g -Xms10g -jar ../target/experiments-smsnp-1.0-SNAPSHOT.jar -algo WORD_WEAK_SEMI_CRF -modelPath ${expDir}/weak-semi-crf_seg6_prev_words_next_bigram_segment-2.0.model -testPath ../data/SMSNP.test -logPath ${expDir}/weak-semi-crf_seg6_prev_words_next_bigram_segment-2.0.test.log -resultPath ${expDir}/weak-semi-crf_seg6_prev_words_next_bigram_segment-2.0.test.result -l2 2.0 -maxSegmentLength 6 -nThreads 4 -tokenizer regex 2>&1 | tee ${expDir}/weak-semi-crf_seg6_prev_words_next_bigram_segment-2.0.test.runlog

java -Xmx10g -Xms10g -jar ../target/experiments-smsnp-1.0-SNAPSHOT.jar -algo WORD_WEAK_SEMI_CRF -modelPath ${expDir}/weak-semi-crf_seg6_prev_words_next_bigram_segment_shape-2.0.model -testPath ../data/SMSNP.test -logPath ${expDir}/weak-semi-crf_seg6_prev_words_next_bigram_segment_shape-2.0.test.log -resultPath ${expDir}/weak-semi-crf_seg6_prev_words_next_bigram_segment_shape-2.0.test.result -l2 2.0 -maxSegmentLength 6 -nThreads 4 -tokenizer regex 2>&1 | tee ${expDir}/weak-semi-crf_seg6_prev_words_next_bigram_segment_shape-2.0.test.runlog

java -Xmx10g -Xms10g -jar ../target/experiments-smsnp-1.0-SNAPSHOT.jar -algo WORD_WEAK_SEMI_CRF -modelPath ${expDir}/weak-semi-crf_seg6_prev_words_next_bigram_segment_cluster-2.0.model -testPath ../data/SMSNP.test -logPath ${expDir}/weak-semi-crf_seg6_prev_words_next_bigram_segment_cluster-2.0.test.log -resultPath ${expDir}/weak-semi-crf_seg6_prev_words_next_bigram_segment_cluster-2.0.test.result -l2 2.0 -maxSegmentLength 6 -nThreads 4 -tokenizer regex 2>&1 | tee ${expDir}/weak-semi-crf_seg6_prev_words_next_bigram_segment_cluster-2.0.test.runlog

java -Xmx10g -Xms10g -jar ../target/experiments-smsnp-1.0-SNAPSHOT.jar -algo WORD_WEAK_SEMI_CRF -modelPath ${expDir}/weak-semi-crf_seg6_prev_words_next_bigram_segment_cluster_shape-2.0.model -testPath ../data/SMSNP.test -logPath ${expDir}/weak-semi-crf_seg6_prev_words_next_bigram_segment_cluster_shape-2.0.test.log -resultPath ${expDir}/weak-semi-crf_seg6_prev_words_next_bigram_segment_cluster_shape-2.0.test.result -l2 2.0 -maxSegmentLength 6 -nThreads 4 -tokenizer regex 2>&1 | tee ${expDir}/weak-semi-crf_seg6_prev_words_next_bigram_segment_cluster_shape-2.0.test.runlog

java -Xmx10g -Xms10g -jar ../target/experiments-smsnp-1.0-SNAPSHOT.jar -algo WORD_WEAK_SEMI_CRF -modelPath ${expDir}/weak-semi-crf_seg6_affix_prev_words_next_bigram_segment-2.0.model -testPath ../data/SMSNP.test -logPath ${expDir}/weak-semi-crf_seg6_affix_prev_words_next_bigram_segment-2.0.test.log -resultPath ${expDir}/weak-semi-crf_seg6_affix_prev_words_next_bigram_segment-2.0.test.result -l2 2.0 -maxSegmentLength 6 -nThreads 4 -tokenizer regex 2>&1 | tee ${expDir}/weak-semi-crf_seg6_affix_prev_words_next_bigram_segment-2.0.test.runlog

java -Xmx10g -Xms10g -jar ../target/experiments-smsnp-1.0-SNAPSHOT.jar -algo WORD_WEAK_SEMI_CRF -modelPath ${expDir}/weak-semi-crf_seg6_affix_prev_words_next_bigram_segment_shape-2.0.model -testPath ../data/SMSNP.test -logPath ${expDir}/weak-semi-crf_seg6_affix_prev_words_next_bigram_segment_shape-2.0.test.log -resultPath ${expDir}/weak-semi-crf_seg6_affix_prev_words_next_bigram_segment_shape-2.0.test.result -l2 2.0 -maxSegmentLength 6 -nThreads 4 -tokenizer regex 2>&1 | tee ${expDir}/weak-semi-crf_seg6_affix_prev_words_next_bigram_segment_shape-2.0.test.runlog

java -Xmx10g -Xms10g -jar ../target/experiments-smsnp-1.0-SNAPSHOT.jar -algo WORD_WEAK_SEMI_CRF -modelPath ${expDir}/weak-semi-crf_seg6_affix_prev_words_next_bigram_segment_cluster-2.0.model -testPath ../data/SMSNP.test -logPath ${expDir}/weak-semi-crf_seg6_affix_prev_words_next_bigram_segment_cluster-2.0.test.log -resultPath ${expDir}/weak-semi-crf_seg6_affix_prev_words_next_bigram_segment_cluster-2.0.test.result -l2 2.0 -maxSegmentLength 6 -nThreads 4 -tokenizer regex 2>&1 | tee ${expDir}/weak-semi-crf_seg6_affix_prev_words_next_bigram_segment_cluster-2.0.test.runlog

java -Xmx10g -Xms10g -jar ../target/experiments-smsnp-1.0-SNAPSHOT.jar -algo WORD_WEAK_SEMI_CRF -modelPath ${expDir}/weak-semi-crf_seg6_affix_prev_words_next_bigram_segment_cluster_shape-2.0.model -testPath ../data/SMSNP.test -logPath ${expDir}/weak-semi-crf_seg6_affix_prev_words_next_bigram_segment_cluster_shape-2.0.test.log -resultPath ${expDir}/weak-semi-crf_seg6_affix_prev_words_next_bigram_segment_cluster_shape-2.0.test.result -l2 2.0 -maxSegmentLength 6 -nThreads 4 -tokenizer regex 2>&1 | tee ${expDir}/weak-semi-crf_seg6_affix_prev_words_next_bigram_segment_cluster_shape-2.0.test.runlog
